package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.ArrayList;
import java.util.List;

public interface MovementApi {
    String save(Movement movement);

    List<Movement> findByUserId(Long userId, Integer page, Integer pagesize);

    List<Movement> findByFriendsId(Long friendId, Integer page, Integer pagesize);

    List<Movement> findByIds(String[] ids, Integer page, Integer pagesize);

    List<Movement> randomMovement(Integer pagesize);

    Movement findById(String id);

    void updateState(String id, Integer state);

    PageResult findMovements(Integer state, Long uid, Integer page, Integer pagesize);
}
